package com.sgb.member.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;
import com.swgk.core.base.model.entity.VideoBean;

import java.io.Serializable;
import java.util.List;

public class MemberLeaseBean implements Parcelable {


    private String isRecommend;
    private String no;
    private String belong;
    private String distance;
    private String city;
    private String city_no;
    private String latitude;
    private String second_category;
    private String negotiable;
    private String title;
    private int type;
    private String first_category;
    private String pictures;
    private String imgPath;
    private String province_no;
    private String provinceName;
    private String cityName;
    private String  areaName;
    private String createType;
    private String rentalPrice;
    private String priceUnitName;
    private int categoryType;

    public int getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(int categoryType) {
        this.categoryType = categoryType;
    }

    public String getCreateType() {
        return createType;
    }

    public String getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(String rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public String getPriceUnitName() {
        return priceUnitName;
    }

    public void setPriceUnitName(String priceUnitName) {
        this.priceUnitName = priceUnitName;
    }

    public void setCreateType(String createType) {
        this.createType = createType;
    }

    public String getImgPath() {
        return imgPath;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    private String dataId;
    private String province;
    private String price;
    private String priceValue;
    private String vipPriceUpdateTime;
    private String business_type;
    private String customerServiceId;

    public String getVipPriceUpdateTime() {
        return vipPriceUpdateTime;
    }

    public void setVipPriceUpdateTime(String vipPriceUpdateTime) {
        this.vipPriceUpdateTime = vipPriceUpdateTime;
    }

    public static Creator<MemberLeaseBean> getCREATOR() {
        return CREATOR;
    }

    private String longitude;
    private String area;
    private String business_name;
    private String priceUnit;
    private String address;
    private String publisherPhone;
    private String sort;
    private String area_no;
    private String publisherUserNo;
    private String publisherName;
    private String createCompanyNo;
    private String category;
    private String updatetime;
    private String isSelf;
    private String status;
    private LocationBean location;
    private List<VideoBean> videoProDict;

    private boolean hasQuete;
    private double quetePrice;

    protected MemberLeaseBean(Parcel in) {
        isRecommend = in.readString();
        no = in.readString();
        belong = in.readString();
        distance = in.readString();
        city = in.readString();
        city_no = in.readString();
        latitude = in.readString();
        second_category = in.readString();
        negotiable = in.readString();
        title = in.readString();
        type = in.readInt();
        first_category = in.readString();
        pictures = in.readString();
        province_no = in.readString();
        dataId = in.readString();
        province = in.readString();
        price = in.readString();
        business_type = in.readString();
        customerServiceId = in.readString();
        longitude = in.readString();
        area = in.readString();
        business_name = in.readString();
        priceUnit = in.readString();
        address = in.readString();
        publisherPhone = in.readString();
        sort = in.readString();
        area_no = in.readString();
        publisherUserNo = in.readString();
        publisherName = in.readString();
        createCompanyNo = in.readString();
        category = in.readString();
        updatetime = in.readString();
        isSelf = in.readString();
        status = in.readString();
        hasQuete = in.readByte() != 0;
        quetePrice = in.readDouble();
        priceValue = in.readString();
    }

    public static final Creator<MemberLeaseBean> CREATOR = new Creator<MemberLeaseBean>() {
        @Override
        public MemberLeaseBean createFromParcel(Parcel in) {
            return new MemberLeaseBean(in);
        }

        @Override
        public MemberLeaseBean[] newArray(int size) {
            return new MemberLeaseBean[size];
        }
    };

    public boolean isHasQuete() {
        return hasQuete;
    }

    public void setHasQuete(boolean hasQuete) {
        this.hasQuete = hasQuete;
    }

    public double getQuetePrice() {
        return quetePrice;
    }

    public void setQuetePrice(double quetePrice) {
        this.quetePrice = quetePrice;
    }

    public List<VideoBean> getVideoProDict() {
        return videoProDict;
    }

    public void setVideoProDict(List<VideoBean> videoProDict) {
        this.videoProDict = videoProDict;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(isRecommend);
        dest.writeString(no);
        dest.writeString(belong);
        dest.writeString(distance);
        dest.writeString(city);
        dest.writeString(city_no);
        dest.writeString(latitude);
        dest.writeString(second_category);
        dest.writeString(negotiable);
        dest.writeString(title);
        dest.writeInt(type);
        dest.writeString(first_category);
        dest.writeString(pictures);
        dest.writeString(province_no);
        dest.writeString(dataId);
        dest.writeString(province);
        dest.writeString(price);
        dest.writeString(business_type);
        dest.writeString(customerServiceId);
        dest.writeString(longitude);
        dest.writeString(area);
        dest.writeString(business_name);
        dest.writeString(priceUnit);
        dest.writeString(address);
        dest.writeString(publisherPhone);
        dest.writeString(sort);
        dest.writeString(area_no);
        dest.writeString(publisherUserNo);
        dest.writeString(publisherName);
        dest.writeString(createCompanyNo);
        dest.writeString(category);
        dest.writeString(updatetime);
        dest.writeString(isSelf);
        dest.writeString(status);
        dest.writeByte((byte) (hasQuete ? 1 : 0));
        dest.writeDouble(quetePrice);
        dest.writeString(priceValue);
    }

    public static class LocationBean {
        private String lon;
        private String lat;
    }

    public String getPriceValue() {
        return priceValue;
    }

    public void setPriceValue(String priceValue) {
        this.priceValue = priceValue;
    }


    public String getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(String isRecommend) {
        this.isRecommend = isRecommend;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getBelong() {
        return belong;
    }

    public void setBelong(String belong) {
        this.belong = belong;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity_no() {
        return city_no;
    }

    public void setCity_no(String city_no) {
        this.city_no = city_no;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getSecond_category() {
        return second_category;
    }

    public void setSecond_category(String second_category) {
        this.second_category = second_category;
    }

    public String getNegotiable() {
        return negotiable;
    }

    public void setNegotiable(String negotiable) {
        this.negotiable = negotiable;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFirst_category() {
        return first_category;
    }

    public void setFirst_category(String first_category) {
        this.first_category = first_category;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public String getProvince_no() {
        return province_no;
    }

    public void setProvince_no(String province_no) {
        this.province_no = province_no;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getBusiness_type() {
        return business_type;
    }

    public void setBusiness_type(String business_type) {
        this.business_type = business_type;
    }

    public String getCustomerServiceId() {
        return customerServiceId;
    }

    public void setCustomerServiceId(String customerServiceId) {
        this.customerServiceId = customerServiceId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBusiness_name() {
        return business_name;
    }

    public void setBusiness_name(String business_name) {
        this.business_name = business_name;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPublisherPhone() {
        return publisherPhone;
    }

    public void setPublisherPhone(String publisherPhone) {
        this.publisherPhone = publisherPhone;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getArea_no() {
        return area_no;
    }

    public void setArea_no(String area_no) {
        this.area_no = area_no;
    }

    public String getPublisherUserNo() {
        return publisherUserNo;
    }

    public void setPublisherUserNo(String publisherUserNo) {
        this.publisherUserNo = publisherUserNo;
    }

    public String getPublisherName() {
        return publisherName;
    }

    public void setPublisherName(String publisherName) {
        this.publisherName = publisherName;
    }

    public String getCreateCompanyNo() {
        return createCompanyNo;
    }

    public void setCreateCompanyNo(String createCompanyNo) {
        this.createCompanyNo = createCompanyNo;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(String isSelf) {
        this.isSelf = isSelf;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocationBean getLocation() {
        return location;
    }

    public void setLocation(LocationBean location) {
        this.location = location;
    }

}
